home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 1.toast / Sample Code / Networking / OTCodeResource / Worksheet < prev   
Encoding:
Text File  |  2000-09-28  |  1.7 KB  |  65 lines  |  [TEXT/MPS ]

  1. # Worksheet for OTGetDefaultEthernetAddress
  2.  
  3. # Step 0 -- Get a copy of ETO 23 because this sample uses the tools on it.
  4.  
  5. # Step 1 -- Set the directory to the one containing the sample.
  6.  
  7. Directory 'Guy Smiley:Open Transport:Samples & Tests:OT Code Resource:'
  8.  
  9. Directory `GetFileName -d`
  10.  
  11. # Step 2 -- Set OTSDK to point to the OT SDK
  12.  
  13. Set OTSDK "Stern:OT 1.3:Open Transport SDK:"
  14. Export OTSDK
  15.  
  16. # Step 3 -- Set ASLMDevTools to point to the ASLM Developer Tools folder
  17.  
  18. Set ASLMDevTools 'Guy Smiley:Open Transport:ASLM Dev Tools:'
  19. Export ASLMDevTools
  20.  
  21. # Step 4 -- Run this script
  22.  
  23. # Compile the code
  24.  
  25. SC OTGetDefaultEthernetAddress.c ∂
  26.     -model near ∂
  27.     -proto strict ∂
  28.     -i "{OTSDK}Open Tpt Client Developer:Includes:CIncludes:" ∂
  29.     -i "{OTSDK}Open Tpt Protocol Developer:Includes:" ∂
  30.     -i "{ASLMDevTools}"Interfaces:CIncludes:
  31.  
  32. # Link it
  33.  
  34. Link ∂
  35.     OTGetDefaultEthernetAddress.c.o ∂
  36.     -model near ∂
  37.     -m MAIN             # this is very necessary ∂
  38.     -t rsrc -c RSED ∂
  39.     -w                     # ignore headcrash ∂
  40.     -rt XCMD=129 ∂
  41.     -sg OTGetDefaultEthernetAddressSC ∂
  42.     "{ASLMDevTools}"Libraries:SCLibraries:LibraryManager.n.o ∂
  43.     "{OTSDK}Open Tpt Client Developer:68K Libraries:OpenTransportExtn.n.o" ∂
  44.     "{OTSDK}Open Tpt Client Developer:68K Libraries:OpenTransport.n.o" ∂
  45.     "{CLibraries}"StdCLib.o ∂
  46.     "{Libraries}"IntEnv.o ∂
  47.     "{Libraries}"Stubs.o ∂
  48.     "{Libraries}"MacRuntime.o ∂
  49.     "{Libraries}"Interface.o
  50.  
  51. # Copy it into the stack
  52.  
  53. begin
  54.     echo include ∂"Link.out∂"∂;
  55. end | Rez -a -o OTGetDefaultEthernetAddr
  56.  
  57. # Step 5 -- Compile "ApplParamsHack.c" into "ApplParamsHack.c.o".
  58. #            "ApplParamsHack.c.o" is used by the Metrowerks version of this
  59. #            sample.  The sample already comes with a compiled version.
  60. #             This step is only necessary if you want to rebuild it yourself.
  61.  
  62.     SC ApplParamsHack.c
  63.  
  64. # End of Sheet
  65.